#include "mainwidget.h"
#include "ui_mainwidget.h"
#include "qss.h"

MainWidget::MainWidget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::MainWidget)
{
    ui->setupUi(this);
    this->setWindowTitle("图片与视频编辑器");

    this->setMinimumSize(800, 600);
    ui->tabWidget->setCurrentIndex(0);

    this->setStyleSheet(qss0); //白色
}

MainWidget::~MainWidget()
{
    delete ui;
}



void MainWidget::on_comboBox_currentIndexChanged(int index)
{
    switch(index){
    case 0 :{
        this->setStyleSheet(qss0); //白色
        break;

        }
    case 1 :{
        this->setStyleSheet(qss1);  //蓝色
        break;
    }
    case 2 :{
        this->setStyleSheet(qss2);  //黑色
        break;
    }
    default:
        break;
    }
}

